home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Palettes
/
HotShape
/
HotPath.psw
next >
Wrap
Text File
|
1995-06-12
|
892b
|
35 lines
defineps setHotPaths()
/ellipse {
0.5 0.5 0.5 0 360 arc} def
/rectangle {
0.001 0.001 moveto 0.999 0.001 lineto 0.999 0.999 lineto
0.001 0.999 lineto 0.001 0.001 lineto closepath} def
/diamond {0.999 0.5 moveto 0.5 0.999 lineto 0.001 0.5 lineto
0.5 0.001 lineto 0.999 0.5 lineto closepath} def
/star { 0.42 0.57 moveto
5 {-0.3 0 rlineto
324 rotate
0.3 0 rlineto
108 rotate }repeat
closepath }def
/triangle { 0.08 0.15 moveto
3 {0.85 0 rlineto
120 rotate} repeat
closepath }def
/octagon { 0.31 0.05 moveto
8 {0.38 0 rlineto
45 rotate} repeat
closepath }def
endps
defineps drawHotPath(char *hotPathName; boolean visible)
visible {0 setgray 1.0 setalpha 0 setlinewidth hotPathName stroke}if
endps
defineps inHotRegion(char *hotPathName; float xCoord, yCoord | boolean *flag)
xCoord yCoord hotPathName infill
flag
endps